Skip to Main Content
Secure Development for Mobile Apps
book

Secure Development for Mobile Apps

by J. D. Glaser
October 2014
Intermediate to advanced content levelIntermediate to advanced
472 pages
10h 44m
English
Auerbach Publications
Content preview from Secure Development for Mobile Apps
338
seCure develoPment For mobIle APPs
case JSON_ERROR_STATE_MISMATCH:
logError('Underflow or the modes mismatch');
break;
case JSON_ERROR_CTRL_CHAR:
logError('Unexpected control character found');
break;
case JSON_ERROR_SYNTAX:
logError('Syntax error, malformed JSON');
break;
case JSON_ERROR_UTF8:
lo gError('Malformed UTF-8 characters, possibly incorrectly
encoded');
break;
default:
logError('Unknown error');
break;
}
is long switch statement can be shortened considerably as is seen in the next
example.It is listed here in its entirety for reference. Two errors in particular are the
JSON _ ERROR _ UTF8, and the JSON _ ERROR _ SYNTAX messages. ese can
be used to direct logic flow to make corrections. e JSON _ ERROR _ CTRL _
CHAR can be ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Developing with Web Standards

Developing with Web Standards

John Allsopp
Mobile Cloud Computing

Mobile Cloud Computing

Dijiang Huang, Huijun Wu

Publisher Resources

ISBN: 9781482209037